import request from "../utils/request.js";
import tableColums from "../static/tableColumn.json"
const loginUrl = "/BHAPI/appLogin"
const userInfoUrl = "/BHAPI/customer/DetailInfo"
const customerListUrl = '/BHAPI/customer/appList'
const customerUpdateUrl = '/BHAPI/customer/update'
const customerInfoUrl = "/BHAPI/customer/custInfo"
const customerColums = "/BHAPI/enterprise/columns/list"
const agreement = "/BHAPI/customer/agreement"



export function appLogin(data) {
	return request({
		url: loginUrl,
		method: 'post',
		data
	})
}

export function getCompanyInfo(data) {
	return request({
		url: userInfoUrl,
		method: 'post',
		data
	})
}

export function getCustomerList(data) {
	return request({
		url: customerListUrl,
		method: 'post',
		data
	})
}

export function customerUpdate(data) {
	return request({
		url: customerUpdateUrl,
		method: 'post',
		data
	})
}

export function getCustomerInfo(data) {
	return request({
		url: customerInfoUrl,
		method: 'post',
		data
	})
}

export function getColumns(data) {
	return request({
		url:customerColums,
		method:'post',
		data
	})
}

export function getAgreement(data) {
	return request({
		url: agreement,
		method: 'post',
		data
	})
}